Skip to content

Commit

Permalink
Configure PyPI release 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtamohler committed Sep 8, 2023
1 parent a149923 commit c99b703
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ page is a good starting point to see what SpacetimeLib can do.

## Install

### Pip

```bash
pip install spacetimelib
```

### From source

Install Miniconda:
[instructions](https://docs.conda.io/projects/conda/en/latest/user-guide/install/index.html)

Expand Down
1 change: 1 addition & 0 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ dependencies:
- jupyter
- matplotlib
- perfplot
- build
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[build-system]
requires = [
"setuptools>=61.0",
"numpy",
"sphinx",
"myst-parser",
"myst-nb",
"matplotlib",
]
build-backend = "setuptools.build_meta"

[project]
name = "spacetimelib"
version = "0.0.1"
authors = [
{ name="Kurt Mohler", email="kurtamohler@gmail.com" },
]
description = "Special relativity physics library for Python"
readme = "README.md"
requires-python = ">=3"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]

[project.urls]
"Homepage" = "https://github.com/kurtamohler/spacetimelib"
"Bug Tracker" = "https://github.com/kurtamohler/spacetimelib/issues"
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
with open('README.md') as f:
readme = f.read()

# TODO: Decide which license to use
# with open('LICENSE') as f:
# license = f.read()
with open('LICENSE') as f:
license = f.read()

name = 'spacetime'
version = '0.0'
release = '0.0.0'
release = '0.0.1'

setup(
name=name,
Expand All @@ -33,5 +32,7 @@
'version': ('setup.py', version),
'release': ('setup.py', release),
'source_dir': ('setup.py', 'doc/source')}},
install_requires=[
'numpy',
],
)

0 comments on commit c99b703

Please sign in to comment.