Skip to content

Commit da42475

Browse files
committed
Fix versioneer integration
1 parent d30f216 commit da42475

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
- name: Upgrade pip and install build tools
2323
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y build-essential
2426
python -m pip install --upgrade pip
2527
pip install build wheel setuptools
2628

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include optimrl/c_src/grpo.h
2+
include versioneer.py
3+
include optimrl/_version.py
4+
include pyproject.toml
5+
include optimrl/c_src/*.h
6+
include optimrl/c_src/*.c

optimrl/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
__version__ = "0.1.0"
44
__all__ = ["GRPO"]
55
from . import _version
6+
from ._version import get_versions
67
__version__ = _version.get_versions()['version']
8+
del get_versions

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel", "build","versioneer"]
3+
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def copy_extensions_to_package(self):
8686
long_description=long_description,
8787
long_description_content_type="text/markdown",
8888
url="https://github.com/SubaashNair/OptimRL",
89-
packages=find_packages(),
89+
packages=find_packages(include=["optimrl", "optimrl.*"]),
9090
ext_modules=[grpo_module],
9191
install_requires=[
9292
"numpy>=1.20.0",
@@ -99,6 +99,6 @@ def copy_extensions_to_package(self):
9999
python_requires=">=3.8",
100100
include_package_data=True,
101101
package_data={
102-
'optimrl': ['c_src/.dylib', 'c_src/.so', 'c_src/.dll']
102+
'optimrl': ['c_src/.dylib', 'c_src/.so', 'c_src/.dll','c_src/*.h', 'c_src/*.c']
103103
},
104104
)

0 commit comments

Comments
 (0)