Skip to content

Commit 8fd9b64

Browse files
authored
Merge pull request #2 from ForNeus57/Pip-package
Feat: Converted project to Python Installable Package using setuptools backend
2 parents 4a60e72 + 081092d commit 8fd9b64

File tree

7 files changed

+62
-0
lines changed

7 files changed

+62
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
all:
2+
echo 'All'
3+
4+
python-install:
5+
pip3 install .
6+
7+
python-install-editable:
8+
pip3 install -e .[development]

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", "numpy==2.3.5"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[project]
2+
name = "app"
3+
version = "0.0.1"
4+
long_description = file: README.md
5+
long_description_content_type = text/markdown
6+
classifiers =
7+
Intended Audience :: Developers,
8+
Natural Language :: English,
9+
Programming Language :: C++,
10+
Programming Language :: Python,
11+
Programming Language :: Python :: 3.13,
12+
Programming Language :: Python :: Implementation :: CPython
13+
14+
[options]
15+
include_package_data = True
16+
package_dir =
17+
=./src/
18+
packages = find:
19+
python_requires = >=3.13
20+
install_requires =
21+
importlib-metadata; python_version<"3.13"
22+
cython
23+
matplotlib==3.10.0
24+
pandas==2.3.3
25+
26+
[options.package_data]
27+
* = py.typed
28+
29+
[options.extras_require]
30+
development =
31+
mypy==1.18.2,
32+
ruff==0.14.6,
33+
flake8==7.3.0,
34+
pylint==4.0.2,
35+
nbqa==1.9.1
36+
pytest==9.0.1
37+
38+
[options.packages.find]
39+
where = ./src/
40+
include =
41+
app
42+
app.*

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from setuptools import setup
2+
3+
def main() -> None:
4+
setup()
5+
6+
if __name__ == '__main__':
7+
main()

src/app/__init__.py

Whitespace-only changes.

src/app/hello.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def hello():
2+
print('ABC')

src/app/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)