ocstrack 0.1.0__tar.gz → 0.1.2.post1.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. ocstrack-0.1.2.post1.dev0/.github/workflows/publish-to-pypi.yml +42 -0
  2. ocstrack-0.1.2.post1.dev0/.github/workflows/run-tests.yml +58 -0
  3. ocstrack-0.1.2.post1.dev0/.gitignore +121 -0
  4. ocstrack-0.1.2.post1.dev0/.pylintrc +671 -0
  5. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/LICENSE.txt +121 -121
  6. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/PKG-INFO +142 -134
  7. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/README.md +119 -114
  8. ocstrack-0.1.2.post1.dev0/examples/Plot_Collocated.ipynb +188 -0
  9. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Collocation/__init__.py +1 -1
  10. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Collocation/collocate.py +443 -429
  11. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Collocation/output.py +66 -63
  12. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Collocation/spatial.py +177 -175
  13. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Collocation/temporal.py +116 -112
  14. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Model/__init__.py +1 -1
  15. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Model/model.py +238 -236
  16. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Satellite/__init__.py +1 -1
  17. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Satellite/get_sat.py +360 -369
  18. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Satellite/satellite.py +113 -103
  19. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/Satellite/urls.py +12 -11
  20. ocstrack-0.1.2.post1.dev0/ocstrack/_version.py +34 -0
  21. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack/utils.py +49 -47
  22. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack.egg-info/PKG-INFO +142 -134
  23. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack.egg-info/SOURCES.txt +7 -0
  24. ocstrack-0.1.2.post1.dev0/ocstrack.egg-info/requires.txt +11 -0
  25. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/pyproject.toml +39 -27
  26. ocstrack-0.1.0/ocstrack.egg-info/requires.txt → ocstrack-0.1.2.post1.dev0/requirements.txt +2 -1
  27. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/setup.cfg +4 -4
  28. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/setup.py +5 -5
  29. ocstrack-0.1.2.post1.dev0/tests/test_get_sat.py +3 -0
  30. ocstrack-0.1.0/ocstrack/__init__.py +0 -1
  31. /ocstrack-0.1.0/tests/test_get_sat.py → /ocstrack-0.1.2.post1.dev0/ocstrack/__init__.py +0 -0
  32. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack.egg-info/dependency_links.txt +0 -0
  33. {ocstrack-0.1.0 → ocstrack-0.1.2.post1.dev0}/ocstrack.egg-info/top_level.txt +0 -0
@@ -0,0 +1,42 @@
1
+ # .github/workflows/publish-to-pypi.yml
2
+ #
3
+ # This workflow builds and publishes the package to PyPI
4
+ # every time you create a new release on GitHub.
5
+ #
6
+ name: Publish Python - PyPI
7
+
8
+ on:
9
+ release:
10
+ types: [created] # This is the trigger
11
+
12
+ jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0 # <-- ADD THIS LINE to fetch all history and tags
20
+
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: '3.10'
25
+
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install build twine
30
+ # Installs the same tools you used locally
31
+
32
+ - name: Build package
33
+ run: python -m build
34
+ # Runs the same build command you used
35
+
36
+ - name: Publish package to PyPI
37
+ run: twine upload dist/*
38
+ env:
39
+ # This is where the magic happens
40
+ # It uses a secure secret for the token
41
+ TWINE_USERNAME: __token__
42
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,58 @@
1
+ name: Run Tests & Lint (CI)
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ branches: [ "main" ]
7
+
8
+ jobs:
9
+ # --- JOB 1: RUN PYLINT --- #
10
+ lint:
11
+ runs-on: ubuntu-latest # No need to run on all OSs
12
+ steps:
13
+ - name: Check out code
14
+ uses: actions/checkout@v4
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v5
18
+ with:
19
+ python-version: '3.10'
20
+
21
+ - name: Install dependencies
22
+ run: |
23
+ python -m pip install --upgrade pip
24
+ # We only need the dev dependencies for this
25
+ pip install .[dev]
26
+
27
+ - name: Run Pylint
28
+ run: |
29
+ # Run pylint on your main package folder
30
+ # (Replace 'ocstrack' if your folder is named differently)
31
+ pylint ocstrack
32
+
33
+ # --- JOB 2: RUN TESTS --- #
34
+ test:
35
+ runs-on: ${{ matrix.os }}
36
+ strategy:
37
+ matrix:
38
+ os: [ubuntu-latest, windows-latest, macos-latest]
39
+ python-version: ["3.10", "3.11"]
40
+
41
+ steps:
42
+ - name: Check out code
43
+ uses: actions/checkout@v4
44
+ with:
45
+ fetch-depth: 0
46
+
47
+ - name: Set up Python ${{ matrix.python-version }}
48
+ uses: actions/setup-python@v5
49
+ with:
50
+ python-version: ${{ matrix.python-version }}
51
+
52
+ - name: Install dependencies
53
+ run: |
54
+ python -m pip install --upgrade pip
55
+ pip install -e .[dev]
56
+
57
+ - name: Run Pytest
58
+ run: pytest
@@ -0,0 +1,121 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ .hypothesis/
50
+ .pytest_cache/
51
+
52
+ # Translations
53
+ *.mo
54
+ *.pot
55
+
56
+ # Django stuff:
57
+ *.log
58
+ local_settings.py
59
+ db.sqlite3
60
+
61
+ # Flask stuff:
62
+ instance/
63
+ .webassets-cache
64
+
65
+ # Scrapy stuff:
66
+ .scrapy
67
+
68
+ # Sphinx documentation
69
+ docs/_build/
70
+
71
+ # PyBuilder
72
+ target/
73
+
74
+ # Jupyter Notebook
75
+ .ipynb_checkpoints
76
+
77
+ # IPython
78
+ profile_default/
79
+ ipython_config.py
80
+
81
+ # pyenv
82
+ .python-version
83
+
84
+ # celery beat schedule file
85
+ celerybeat-schedule
86
+
87
+ # SageMath parsed files
88
+ *.sage.py
89
+
90
+ # Environments
91
+ .env
92
+ .venv
93
+ env/
94
+ venv/
95
+ ENV/
96
+ env.bak/
97
+ venv.bak/
98
+
99
+ # Spyder project settings
100
+ .spyderproject
101
+ .spyproject
102
+
103
+ # Rope project settings
104
+ .ropeproject
105
+
106
+ # mkdocs documentation
107
+ /site
108
+
109
+ # mypy
110
+ .mypy_cache/
111
+ .dmypy.json
112
+ dmypy.json
113
+
114
+ # Pyre type checker
115
+ .pyre/
116
+
117
+ # VSCODE IDE
118
+ .vscode
119
+
120
+ #Pycharm IDE
121
+ .idea