Skip to content

Commit

Permalink
Change to using setup.cfg and .toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFP committed Feb 22, 2021
1 parent 83f9ec0 commit 1097c41
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 40 deletions.
2 changes: 1 addition & 1 deletion aptools/__init__.py
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__']
1 change: 0 additions & 1 deletion aptools/__version__.py

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

26 changes: 26 additions & 0 deletions setup.cfg
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
37 changes: 3 additions & 34 deletions setup.py
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()

0 comments on commit 1097c41

Please sign in to comment.