Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit 4d038ac

Browse files
committed
Make the package buildable
This marks the package as pre-alpha and sets the version to `0.1.0`.
1 parent 04c2338 commit 4d038ac

File tree

5 files changed

+60
-1
lines changed

5 files changed

+60
-1
lines changed

Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
PYTHON_VERSION ?= 3.8
22

3+
dist: clean-dist
4+
python3 setup.py sdist
5+
36
venv: dev-packages.txt
47
virtualenv venv --python=${PYTHON_VERSION}
58
. venv/bin/activate && pip3 install --upgrade pip && pip3 install -r dev-packages.txt
@@ -15,6 +18,12 @@ focus-test: venv
1518
@ . venv/bin/activate && flake8 src tests --exclude '#*,~*,.#*'
1619

1720
.PHONY: clean
18-
clean:
21+
clean: clean-dist
1922
rm -rf venv
2023
find . -name "*.pyc" -delete
24+
25+
.PHONY: clean-dist
26+
clean-dist:
27+
rm -rf build
28+
rm -rf src/python_on_rails.egg-info
29+
rm -rf dist

README.md

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

99
Lecture material for implementing certain Ruby-like behaviours in Python.
1010

11+
**NB:** This is heavily under development and subject to change. Expect breaking changes until the 1.0.0 release.
12+
1113
## Current Functionality
1214

1315
The links in the list of available modules, classes, methods, and functions below link to the corresponding Ruby documentation.

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[bdist_wheel]
2+
universal = 0
3+
14
[flake8]
25
max-line-length = 100

setup.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
from os import path
2+
from re import search
3+
from setuptools import find_packages, setup
4+
5+
6+
HERE = path.abspath(path.dirname(__file__))
7+
8+
with open(path.join(HERE, "README.md"), encoding="utf-8") as f:
9+
README = f.read()
10+
11+
with open(path.join(HERE, "src", "pyby", "__init__.py"), encoding="utf-8") as f:
12+
VERSION = search(r'VERSION = "(\d+\.\d+\.\d+)"', f.read()).group(1)
13+
14+
setup(
15+
name="pyby",
16+
version=VERSION,
17+
description="A collection of Ruby behaviour ported to Python.",
18+
license="MIT",
19+
author="Lennart Fridén",
20+
author_email="lennart@devl.se",
21+
classifiers=[
22+
"Development Status :: 2 - Pre-Alpha",
23+
# "Development Status :: 5 - Production/Stable",
24+
"License :: OSI Approved :: MIT License",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: 3.10",
29+
"Topic :: Software Development :: Libraries",
30+
"Topic :: Software Development :: Libraries :: Ruby Modules",
31+
],
32+
keywords="Ruby Enumerable",
33+
long_description=README,
34+
long_description_content_type="text/markdown",
35+
package_dir={"": "src"},
36+
packages=find_packages(where="src"),
37+
python_requires="~=3.8",
38+
project_urls={
39+
"Bug Reports": "https://github.com/DevL/pyby/issues",
40+
"Source": "https://github.com/DevL/pyby",
41+
},
42+
url="https://github.com/DevL/pyby",
43+
)

src/pyby/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from .enumerator import Enumerator
55
from .object import respond_to, RObject
66

7+
VERSION = "0.1.0"
8+
79
__all__ = [
810
Enumerable,
911
EnumerableDict,

0 commit comments

Comments
 (0)