Skip to content

Commit

Permalink
Issue #79: refactored repo to src style directory using pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
johnowagon committed Dec 5, 2023
1 parent f3c7f70 commit 6aa05a9
Show file tree
Hide file tree
Showing 80 changed files with 67 additions and 50 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
To install the package, run:

```
pip install -e .
pip install -e . && finish_install
```

while in the base directory. This will install `pip` dependencies and download data dependencies (see [#51](https://github.com/AVSLab/bsk_rl/issues/51) for issues with `chebpy` installation on Silicon Macs). Test the installation by running
Expand Down
35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "bsk_rl"
version = "0.0.0"
authors = [
{name = "Adam Herrmann", email = "adam.herrmann@colorado.edu"},
{name = "Mark Stephenson", email = "mark.a.stephenson@colorado.edu"},
]
description = "RL environments and tools for spacecraft autonomy research, built on Basilisk. Developed by the AVS Lab."
readme = "README.md"
requires-python = ">=3.9.0"
license = {text = "MIT"}
dependencies = [
"deap==1.3.3",
"Deprecated",
"gymnasium",
"matplotlib",
"numpy",
"pandas",
"pytest",
"pytest-cov",
"pytest-repeat",
"requests",
"scikit-learn",
"scipy",
"stable-baselines3",
"tensorflow",
"torch",
]

[project.scripts]
finish_install = "bsk_rl.finish_install:pck_install"
49 changes: 0 additions & 49 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
31 changes: 31 additions & 0 deletions src/bsk_rl/finish_install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import io
import subprocess
import sys
import zipfile
from pathlib import Path

import requests


def pck_install():
subprocess.check_call(
[
sys.executable,
"-m",
"pip",
"install",
"git+https://github.com/chebpy/chebpy.git",
]
)

r = requests.get(
"https://simplemaps.com/static/data/world-cities/basic/simplemaps_worldcities_basicv1.76.zip"
)
z = zipfile.ZipFile(io.BytesIO(r.content))
z.extractall(
Path(__file__).parent.resolve()
/ "envs"
/ "general_satellite_tasking"
/ "scenario"
/ "simplemaps_worldcities"
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6aa05a9

Please sign in to comment.