|
| 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 | +) |
0 commit comments