Skip to content

Commit 4ab8393

Browse files
authored
Initial Script for packaging pdesolvers (#37)
* Script added for packaging pdesolvers python module for PyPi * Added VERSION file * Removed dist from repo
1 parent 2279864 commit 4ab8393

4 files changed

Lines changed: 52 additions & 1 deletion

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
**/__pycache__/
44
**/*.py[cod]
55

6+
# Ignore local build files
7+
build/
8+
dist/
9+
pdesolvers.egg-info/
10+
611
# ignore .idea file
712
.idea/*
813
.idea
@@ -13,6 +18,8 @@
1318

1419
# Ignore VS Code files
1520
.vscode
21+
.venv
22+
.conda
1623

1724
# Other files
1825
*.log

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ numpy==2.1.3
33
scipy==1.14.1
44
pandas==2.2.3
55
pytest==8.3.4
6-
pytest-cov==6.0.0
6+
pytest-cov==6.0.0
7+
setuptools
8+
wheel
9+
twine

setup.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
from setuptools import setup, find_packages
2+
import io
3+
import os
4+
5+
here = os.path.abspath(os.path.dirname(__file__))
6+
7+
NAME = 'pdesolvers'
8+
9+
# Import version from file
10+
version_file = open(os.path.join(here, 'VERSION'))
11+
VERSION = version_file.read().strip()
12+
13+
DESCRIPTION = 'A package for solving partial differential equations'
14+
15+
# Import the README and use it as the long-description.
16+
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
17+
try:
18+
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
19+
LONG_DESCRIPTION = '\n' + f.read()
20+
except FileNotFoundError:
21+
long_description = DESCRIPTION
22+
23+
setup(
24+
name=NAME,
25+
version='0.1',
26+
description=DESCRIPTION,
27+
long_description=LONG_DESCRIPTION,
28+
long_description_content_type='text/markdown',\
29+
author='Chelsea De Marseilla, Debdal Chowdhury',
30+
license='Apache License 2.0',
31+
packages=find_packages(),
32+
install_requires=[
33+
'matplotlib==3.9.2',
34+
'numpy==2.1.3',
35+
'scipy==1.14.1',
36+
'pandas==2.2.3',
37+
'pytest==8.3.4'
38+
],
39+
url='https://github.com/GPUEngineering/PDESolvers',
40+
)

0 commit comments

Comments
 (0)