-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from Morisset/devel
1.1.23
- Loading branch information
Showing
8 changed files
with
93 additions
and
52 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* Migrate the setup to pyproject.toml. Minimalist version of setup.py is kept. | ||
* Remove the version.py file, the version is now in pyproject.toml | ||
* Move the import ai4neb into a specific config method: pn.config.import_AI4Neb() before using the Machine Learning tools. This avoid annoying message about Tensorflow to appear and speedup the import of pyneb when not using ML facilities. | ||
* Change the name of the package to pyneb instead of PyNeb (seems to be mandatory soon). |
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 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,48 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyneb" | ||
version = "1.1.23" | ||
requires-python = ">= 3.8" | ||
dependencies = [ | ||
"numpy", | ||
"matplotlib", | ||
"scipy", | ||
"h5py", | ||
# astropy | ||
] | ||
description = "A Python package for nebular analysis" | ||
authors = [ | ||
{ name = "Christophe Morisset", email = "[email protected]" }, | ||
{ name = "Valentina Luridiana"} | ||
] | ||
license = { file = "LICENCE.md" } | ||
readme = "README.rst" | ||
keywords = ["nebular", "analysis", "astronomy"] | ||
|
||
[project.urls] | ||
Homepage = "http://www.iac.es/proyecto/PyNeb/" | ||
Repository = "https://github.com/Morisset/PyNeb_devel" | ||
Documentation = "http://morisset.github.io/PyNeb_devel/" | ||
Changelog = "https://github.com/Morisset/PyNeb_devel/tree/master/docs/CHANGES" | ||
|
||
[tool.setuptools] | ||
packages=['pyneb', | ||
'pyneb.core', | ||
'pyneb.plot', | ||
'pyneb.utils', | ||
'pyneb.extinction'] | ||
|
||
[tool.setuptools.package-data] | ||
'pyneb'=['atomic_data_fits/*.fits', | ||
'atomic_data_fits/*.hdf5', | ||
'atomic_data_fits/old_fits/*.fits', | ||
'atomic_data/*.dat', | ||
'atomic_data/*.func', | ||
'atomic_data/*.txt', | ||
'atomic_data/levels/*.dat', | ||
'atomic_data/deprecated/*.dat'] | ||
'pyneb.extinction'=['*.txt'] | ||
'pyneb.plot'=['level_diagrams/*.png'] |
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,41 +1,28 @@ | ||
#!/usr/bin/env python | ||
|
||
# Always prefer setuptools over distutils | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
# To use a consistent encoding | ||
from codecs import open | ||
from os import path | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
# Get the long description from the README file | ||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
#from pyneb.version import __version__ | ||
|
||
from pyneb.version import __version__ | ||
|
||
setup(name='PyNeb', | ||
version=__version__, | ||
description='Nebular tools', | ||
author='Christophe Morisset, Valentina Luridiana', | ||
long_description=long_description, | ||
author_email='[email protected]', | ||
url='http://www.iac.es/proyecto/PyNeb/', | ||
py_modules=['pyneb.test.test_pyneb'], | ||
packages=['pyneb', | ||
'pyneb.core', | ||
'pyneb.plot', | ||
'pyneb.utils', | ||
'pyneb.extinction'], | ||
package_data={'pyneb':['atomic_data_fits/*.fits', | ||
'atomic_data_fits/*.hdf5', | ||
'atomic_data_fits/old_fits/*.fits', | ||
'atomic_data/*.dat', | ||
'atomic_data/*.func', | ||
'atomic_data/*.txt', | ||
'atomic_data/levels/*.dat', | ||
'atomic_data/deprecated/*.dat'], | ||
'pyneb.extinction':['*.txt'], | ||
'pyneb.plot':['level_diagrams/*.png'] | ||
} | ||
) | ||
setup() | ||
#name='PyNeb', | ||
# packages=['pyneb', | ||
# 'pyneb.core', | ||
# 'pyneb.plot', | ||
# 'pyneb.utils', | ||
# 'pyneb.extinction'], | ||
# package_data={'pyneb':['atomic_data_fits/*.fits', | ||
# 'atomic_data_fits/*.hdf5', | ||
# 'atomic_data_fits/old_fits/*.fits', | ||
# 'atomic_data/*.dat', | ||
# 'atomic_data/*.func', | ||
# 'atomic_data/*.txt', | ||
# 'atomic_data/levels/*.dat', | ||
# 'atomic_data/deprecated/*.dat'], | ||
# 'pyneb.extinction':['*.txt'], | ||
# 'pyneb.plot':['level_diagrams/*.png'] | ||
# } | ||
# ) | ||
|
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