-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move the package to the src directory, update setup.py, get rid of re…
…quirements.txt, add the importlib-resources dependency for python < 3.7
- Loading branch information
1 parent
b5a4c9d
commit ee67b45
Showing
25 changed files
with
45 additions
and
25 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,3 @@ | ||
[build-system] | ||
requires = ["setuptools>=43", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
[metadata] | ||
# This includes the license file(s) in the wheel (requires setuptools>=42) | ||
license_files = LICENSE |
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,36 +1,51 @@ | ||
import os | ||
from setuptools import setup, find_packages | ||
from pathlib import Path | ||
|
||
long_description = """PyValem is a Python package for parsing, validating, manipulating and interpreting the chemical formulas, quantum states and labels of atoms, ions and small molecules. | ||
root = Path(__file__).parent.resolve() | ||
|
||
Species and states are specfied as strings using a simple and flexible syntax, and may be compared, output in different formats and manipulated using a variety of predefined Python methods. | ||
See https://github.com/xnx/pyvalem for documentation and more information. | ||
""" | ||
|
||
# Read in dependencies list from requirements.txt | ||
thelibFolder = os.path.dirname(os.path.realpath(__file__)) | ||
requirementPath = thelibFolder + '/requirements.txt' | ||
install_requires = [] | ||
if os.path.isfile(requirementPath): | ||
with open(requirementPath) as f: | ||
install_requires = f.read().splitlines() | ||
# Get the long description from the README file | ||
long_description = (root / "README.rst").read_text(encoding="utf-8") | ||
|
||
setup( | ||
name = 'pyvalem', | ||
version = '2.3.0', | ||
author = 'Christian Hill, Martin Hanicinec', | ||
author_email = '[email protected]', | ||
description = 'A package for managing simple chemical species and states', | ||
name='pyvalem', | ||
version='2.4.0', | ||
description='A package for managing simple chemical species and states', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url = 'https://github.com/xnx/pyvalem', | ||
packages = find_packages(), | ||
install_requires=install_requires, | ||
long_description_content_type="text/x-rst", | ||
url='https://github.com/xnx/pyvalem', | ||
author='Christian Hill', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: Chemistry", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Operating System :: OS Independent", | ||
], | ||
keywords="chemistry, formula, species, state, reaction", | ||
package_dir={'': 'src'}, | ||
packages=find_packages(where='src'), | ||
python_requires='>=3.4', | ||
install_requires=[ | ||
"pyparsing", | ||
'importlib-resources; python_version < "3.7.0"' | ||
], | ||
extras_require={ | ||
'dev': ["check-manifest", "black", "coverage", "pytest", "ipython"] | ||
}, | ||
package_data={'pyvalem': ['atomic_weights.txt', 'isotope_masses.txt']}, | ||
project_urls={ | ||
"Bug Reports": "https://github.com/xnx/pyvalem/issues", | ||
}, | ||
) |
Empty file.