Skip to content

Commit

Permalink
move the package to the src directory, update setup.py, get rid of re…
Browse files Browse the repository at this point in the history
…quirements.txt, add the importlib-resources dependency for python < 3.7
  • Loading branch information
hanicinecm committed Dec 15, 2021
1 parent b5a4c9d commit ee67b45
Show file tree
Hide file tree
Showing 25 changed files with 45 additions and 25 deletions.
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>=43", "wheel"]
build-backend = "setuptools.build_meta"
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

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.
3 changes: 3 additions & 0 deletions setup.cfg
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
63 changes: 39 additions & 24 deletions setup.py
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 removed test/__init__.py
Empty file.

0 comments on commit ee67b45

Please sign in to comment.