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 Nov 9, 2023
1 parent 43417d3 commit 1d1b910
Show file tree
Hide file tree
Showing 79 changed files with 66 additions and 49 deletions.
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 requests
import sys
import zipfile
from pathlib import Path


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()
/ "bsk_rl"
/ "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 1d1b910

Please sign in to comment.