PyCule 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pycule-0.3.1/.github/workflows/ci.yml +38 -0
- pycule-0.3.1/.github/workflows/publish-to-pypi.yml +34 -0
- pycule-0.3.1/.gitignore +7 -0
- {pycule-0.3.0 → pycule-0.3.1}/PKG-INFO +3 -2
- {pycule-0.3.0 → pycule-0.3.1}/PyCule.egg-info/PKG-INFO +3 -2
- {pycule-0.3.0 → pycule-0.3.1}/PyCule.egg-info/SOURCES.txt +6 -0
- pycule-0.3.1/PyCule.egg-info/scm_file_list.json +18 -0
- pycule-0.3.1/PyCule.egg-info/scm_version.json +8 -0
- pycule-0.3.1/pycule/__init__.py +12 -0
- pycule-0.3.1/pyproject.toml +8 -0
- {pycule-0.3.0 → pycule-0.3.1}/setup.py +3 -12
- pycule-0.3.0/pycule/__init__.py +0 -5
- {pycule-0.3.0 → pycule-0.3.1}/PyCule.egg-info/dependency_links.txt +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/PyCule.egg-info/requires.txt +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/PyCule.egg-info/top_level.txt +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/README.md +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/pycule/callbacks.py +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/pycule/core.py +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/pycule/decorators.py +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/pycule/urls.py +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/setup.cfg +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/tests/test_enamine.py +0 -0
- {pycule-0.3.0 → pycule-0.3.1}/tests/test_ultimate_mcule.py +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
name: Test (Python ${{ matrix.python-version }})
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
max-parallel: 3
|
|
17
|
+
matrix:
|
|
18
|
+
python-version:
|
|
19
|
+
- "3.11"
|
|
20
|
+
- "3.12"
|
|
21
|
+
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
# setuptools_scm derives the package version from git tag history;
|
|
26
|
+
# a shallow clone wouldn't reliably see the tags.
|
|
27
|
+
fetch-depth: 0
|
|
28
|
+
- name: Python setup ${{ matrix.python-version }}
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
- name: Install dependencies
|
|
33
|
+
run: |
|
|
34
|
+
python -m pip install --upgrade pip
|
|
35
|
+
pip install -e .
|
|
36
|
+
pip install pytest
|
|
37
|
+
- name: Run tests
|
|
38
|
+
run: pytest
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Release to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-and-publish:
|
|
10
|
+
name: Build and publish pycule on PyPI
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
with:
|
|
18
|
+
# setuptools_scm derives the package version from the git tag;
|
|
19
|
+
# a shallow clone wouldn't reliably see it.
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
- name: Python setup
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.12"
|
|
25
|
+
- name: Build dist
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip build
|
|
28
|
+
python -m build --sdist
|
|
29
|
+
- name: Publish to PyPI
|
|
30
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
31
|
+
with:
|
|
32
|
+
# Defensive no-op if this exact tag/version was already published
|
|
33
|
+
# (e.g. a re-run), rather than a hard failure.
|
|
34
|
+
skip-existing: true
|
pycule-0.3.1/.gitignore
ADDED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyCule
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Python wrapper for the MCule Ultimate API
|
|
5
5
|
Home-page: https://github.com/xchem/pycule.git
|
|
6
6
|
Author: Warren Thompson
|
|
@@ -9,7 +9,8 @@ License: MIT
|
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
10
|
Classifier: Intended Audience :: Science/Research
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
14
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
15
|
Description-Content-Type: text/markdown
|
|
15
16
|
Requires-Dist: requests>=2.24.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyCule
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Python wrapper for the MCule Ultimate API
|
|
5
5
|
Home-page: https://github.com/xchem/pycule.git
|
|
6
6
|
Author: Warren Thompson
|
|
@@ -9,7 +9,8 @@ License: MIT
|
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
10
|
Classifier: Intended Audience :: Science/Research
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
14
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
15
|
Description-Content-Type: text/markdown
|
|
15
16
|
Requires-Dist: requests>=2.24.0
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
.gitignore
|
|
1
2
|
README.md
|
|
3
|
+
pyproject.toml
|
|
2
4
|
setup.cfg
|
|
3
5
|
setup.py
|
|
6
|
+
.github/workflows/ci.yml
|
|
7
|
+
.github/workflows/publish-to-pypi.yml
|
|
4
8
|
PyCule.egg-info/PKG-INFO
|
|
5
9
|
PyCule.egg-info/SOURCES.txt
|
|
6
10
|
PyCule.egg-info/dependency_links.txt
|
|
7
11
|
PyCule.egg-info/requires.txt
|
|
12
|
+
PyCule.egg-info/scm_file_list.json
|
|
13
|
+
PyCule.egg-info/scm_version.json
|
|
8
14
|
PyCule.egg-info/top_level.txt
|
|
9
15
|
pycule/__init__.py
|
|
10
16
|
pycule/callbacks.py
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
".github/workflows/ci.yml",
|
|
4
|
+
".github/workflows/publish-to-pypi.yml",
|
|
5
|
+
".gitignore",
|
|
6
|
+
"README.md",
|
|
7
|
+
"pycule/__init__.py",
|
|
8
|
+
"pycule/callbacks.py",
|
|
9
|
+
"pycule/core.py",
|
|
10
|
+
"pycule/decorators.py",
|
|
11
|
+
"pycule/urls.py",
|
|
12
|
+
"pyproject.toml",
|
|
13
|
+
"setup.cfg",
|
|
14
|
+
"setup.py",
|
|
15
|
+
"tests/test_enamine.py",
|
|
16
|
+
"tests/test_ultimate_mcule.py"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Pycule initialization."""
|
|
2
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
3
|
+
|
|
4
|
+
__name__ = "Pycule"
|
|
5
|
+
try:
|
|
6
|
+
__version__ = version("PyCule")
|
|
7
|
+
except PackageNotFoundError:
|
|
8
|
+
# Package isn't installed (e.g. running from a source checkout without
|
|
9
|
+
# `pip install`); version is derived from git tags via setuptools_scm.
|
|
10
|
+
__version__ = "unknown"
|
|
11
|
+
|
|
12
|
+
from .core import EnamineWrapper, MCuleWrapper, UltimateMCuleWrapper
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=64", "setuptools_scm>=8"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[tool.setuptools_scm]
|
|
6
|
+
# Fall back gracefully (e.g. installing from a tarball/zip with no .git metadata)
|
|
7
|
+
# instead of hard-failing when no git tag history is available.
|
|
8
|
+
fallback_version = "0.0.0"
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env python
|
|
2
|
-
import io
|
|
3
2
|
import os
|
|
4
|
-
import re
|
|
5
3
|
|
|
6
4
|
from setuptools import setup, find_packages
|
|
7
5
|
|
|
8
|
-
version_match = re.search(
|
|
9
|
-
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
|
|
10
|
-
io.open("pycule/__init__.py", encoding="utf_8_sig").read(),
|
|
11
|
-
)
|
|
12
|
-
if version_match is None:
|
|
13
|
-
raise ValueError("Version could not be determined")
|
|
14
|
-
__version__ = version_match.group(1)
|
|
15
|
-
|
|
16
6
|
if os.path.exists("README.md"):
|
|
17
7
|
long_description = open("README.md").read()
|
|
18
8
|
else:
|
|
@@ -20,7 +10,7 @@ else:
|
|
|
20
10
|
|
|
21
11
|
setup(
|
|
22
12
|
name="PyCule",
|
|
23
|
-
|
|
13
|
+
use_scm_version=True,
|
|
24
14
|
author="Warren Thompson",
|
|
25
15
|
author_email="waztom@gmail.com",
|
|
26
16
|
py_modules=["PyCule"],
|
|
@@ -38,7 +28,8 @@ setup(
|
|
|
38
28
|
"Intended Audience :: Developers",
|
|
39
29
|
"Intended Audience :: Science/Research",
|
|
40
30
|
"License :: OSI Approved :: MIT License",
|
|
41
|
-
"Programming Language :: Python :: 3.
|
|
31
|
+
"Programming Language :: Python :: 3.11",
|
|
32
|
+
"Programming Language :: Python :: 3.12",
|
|
42
33
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
43
34
|
],
|
|
44
35
|
)
|
pycule-0.3.0/pycule/__init__.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|