forked from sherpa-deproject/deproject
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to update to use more-recent Python packaging code. It is limited by Sherpa (in that I'm not trying to support newer setuptools version than Sherpa, at least for the time being, even if we can do here).
- Loading branch information
Showing
9 changed files
with
86 additions
and
92 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
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
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
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
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,5 @@ | ||
[build-system] | ||
requires = ["setuptools >= 51.0.0, < 60", # follow Sherpa | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" |
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ channels: | |
- sherpa | ||
|
||
dependencies: | ||
- python=3.7 | ||
- python=3.8 | ||
- numpy | ||
- sherpa | ||
- astropy |
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,5 +1,46 @@ | ||
[aliases] | ||
test=pytest | ||
[metadata] | ||
version = 0.2.1 | ||
name = deproject | ||
author = Douglas Burke, Tom Aldcroft | ||
author_email = [email protected] | ||
url = https://deproject.readthedocs.io/ | ||
project_urls = | ||
Issue Tracker = https://github.com/sherpa-deproject/deproject/issues/ | ||
Source Code = https://github.com/sherpa-deproject/deproject/ | ||
Documentaion = https://deproject.readthedocs.io/ | ||
|
||
[build_sphinx] | ||
source-dir = docs | ||
keywords = deprojection, xray, 3d, 2d, plasma, Astrophysics, onion | ||
|
||
description = Sherpa deprojection package (X-ray analysis of Galaxy Clusters, Groups, and Galaxies) | ||
long_description = file: README.rst | ||
long_description_content_type = text/x-rst | ||
license = BSD | ||
license_files = LICENSE | ||
platforms = Linux, Mac OS X | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Topic :: Scientific/Engineering :: Astronomy | ||
Topic :: Scientific/Engineering :: Physics | ||
|
||
[options] | ||
# zip_safe = False | ||
python_requires = ~=3.7 | ||
install_requires = | ||
sherpa | ||
astropy | ||
scipy | ||
|
||
tests_require = | ||
pytest | ||
|
||
package_dir = | ||
=src | ||
packages = find: | ||
|
||
[options.packages.find] | ||
where=src |
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,45 +1,3 @@ | ||
from setuptools import setup, find_packages | ||
|
||
with open('README.rst', 'rt') as fh: | ||
long_description = fh.read() | ||
|
||
setup(name='deproject', | ||
version='0.2.1', | ||
license='BSD', | ||
description='Sherpa deprojection package (X-ray analysis of Galaxy Clusters, Groups, and Galaxies)', | ||
keywords='deprojection xray 3d 2d plasma Astrophysics onion', | ||
long_description=long_description, | ||
long_description_content_type='text/x-rst', | ||
author='Douglas Burke, Tom Aldcroft', | ||
author_email='[email protected]', | ||
|
||
url='https://deproject.readthedocs.io/', | ||
project_urls={ | ||
'Documentation': 'https://deproject.readthedocs.io/', | ||
'Source Code': 'https://github.com/sherpa-deproject/deproject/', | ||
'Issues': 'https://github.com/sherpa-deproject/deproject/issues/', | ||
}, | ||
|
||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
|
||
setup_requires=['pytest-runner'], | ||
tests_require=['pytest'], | ||
install_requires=['sherpa', 'astropy', 'scipy'], | ||
|
||
python_requires='~=3.5', | ||
|
||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Topic :: Scientific/Engineering :: Astronomy', | ||
'Topic :: Scientific/Engineering :: Physics' | ||
], | ||
|
||
# I think this should be zip_safe, but have not tried it | ||
# zip_safe=False | ||
) | ||
# This is needed to allow setuptools to handle efitable mode | ||
from setuptools import setup | ||
setup() |