Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate nearly all project metadata to pyproject.toml #116

Merged
merged 6 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* -crlf
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ build/
__pycache__/
chilife.egg-info/
.ipynb_checkpoints
chilife/data/rotamer_libraries/user_rotlibs/convert_drotlibs.py
chilife/data/rotamer_libraries/user_rotlibs/convert_rotlibs.py
src/chilife/data/rotamer_libraries/user_rotlibs/convert_drotlibs.py
src/chilife/data/rotamer_libraries/user_rotlibs/convert_rotlibs.py
examples/**/*_rotlib.npz
docs/build
docs/make.bat
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protein model to retain the native amino acid.
```python
import numpy as np
import matplotlib.pyplot as plt
import chilife as xl
from src import chilife as xl

# Download protein structure from PDB
MBP = xl.fetch('1omp', save=True)
Expand Down
14 changes: 10 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[project]
name = "chilife"
description = 'A package for modeling non-canonical amino acid side chain ensembles.'
readme = 'README.md'
license= {name = 'GNU GPLv3', file = 'LICENSE'}
authors=[{name = 'Maxx Tessmer', email='mhtessmer@gmail.com'},
{name = 'Stefan Stoll', email='stst@uw.edu'}]
keywords=['Spin-label', 'EPR', 'DEER', 'PELDOR', 'Side-chain']
dynamic = ["version", "readme"]
requires-python = ">= 3.8,<=3.11"
dynamic = ["version"]
requires-python = ">= 3.8,<3.12"
dependencies = ['numpy>=1.23.0',
'scipy>=1.6.3',
'matplotlib>=3.3.4',
Expand All @@ -16,7 +17,6 @@ dependencies = ['numpy>=1.23.0',
'pytest>=6.2.2',
'memoization>=0.3.1',
'argparse>=1.4.0',
'setuptools>=53.0.0',
'igraph>=0.11.2',
'rtoml>=0.9.0']

Expand All @@ -28,7 +28,13 @@ classifiers=['License :: OSI Approved :: GNU General Public License v3 (GPLv3)',

[project.urls]
homepage = 'https://github.com/StollLab/chiLife'
documentation = "stolllab.github.io/chiLife/"
documentation = "https://stolllab.github.io/chiLife/"

[tool.setuptools]
script-files = ['scripts/update_rotlib.py', 'scripts/oldProteinIC.py']

[tool.setuptools.package-data]
chilife = ['data/*', 'data/*/*', 'data/*/*/*']

[tool.setuptools.dynamic]
version = {attr = "chilife.__version__"}
Expand Down
12 changes: 2 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def install_style():
import matplotlib as mpl
mpl_stylelib_path = Path(mpl.get_configdir()) / 'stylelib'
mpl_stylelib_path.mkdir(parents=True, exist_ok=True)
style_files = Path("chilife/data/mplstyles/").glob("*.mplstyle")
style_files = Path("src/chilife/data/mplstyles/").glob("*.mplstyle")
for style_file in style_files:
shutil.copy(style_file, mpl_stylelib_path)

Expand All @@ -21,13 +21,5 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
install_style()

setup(
name='chilife',
packages=['chilife'],
package_data={'chilife': ['data/*', 'data/*/*', 'data/*/*/*']},
scripts=['scripts/update_rotlib.py', 'scripts/oldProteinIC.py'],
project_urls = {'Source': 'https://github.com/StollLab/chiLife'},
long_description=readme,
long_description_content_type='text/markdown',
cmdclass={'install': PostInstall})
setup(cmdclass={'install': PostInstall})

Loading