-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to using setup.cfg and .toml file
- Loading branch information
Showing
6 changed files
with
33 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .__version__ import __version__ | ||
from .data_analysis import beam_diagnostics | ||
|
||
__version__ = "0.1.17" | ||
__all__ = ['beam_diagnostics', '__version__'] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[metadata] | ||
name = APtools | ||
version = attr: aptools.__version__ | ||
description = A collection of tools for accelerator physics | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown; charset=UTF-8 | ||
url = https://github.com/AngelFP/APtools | ||
author = Angel Ferran Pousa | ||
author_email = [email protected], | ||
license = GPLv3 | ||
license_file = LICENSE | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Programming Language :: Python :: 3 | ||
Intended Audience :: Science/Research | ||
Topic :: Scientific/Engineering :: Physics | ||
License :: OSI Approved :: GNU General Public License v3 (GPLv3) | ||
Operating System :: OS Independent | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
numpy | ||
scipy | ||
h5py | ||
openpmd-api~=0.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,4 @@ | ||
from setuptools import setup, find_packages | ||
import setuptools | ||
|
||
from aptools.__version__ import __version__ | ||
|
||
# Read long description | ||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
|
||
def read_requirements(): | ||
with open('requirements.txt') as f: | ||
return [line.strip() for line in f.readlines()] | ||
|
||
|
||
# Main setup command | ||
setup(name='APtools', | ||
version=__version__, | ||
author='Angel Ferran Pousa', | ||
author_email="[email protected]", | ||
description='A collection of tools for accelerator physics', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url='https://github.com/AngelFP/APtools', | ||
license='GPLv3', | ||
packages=find_packages('.'), | ||
install_requires=read_requirements(), | ||
platforms='any', | ||
classifiers=( | ||
"Development Status :: 3 - Alpha", | ||
"Programming Language :: Python :: 3", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Operating System :: OS Independent"), | ||
) | ||
if __name__ == "__main__": | ||
setuptools.setup() |