Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

19 pkg resources deprecation warning #165

Draft
wants to merge 11 commits into
base: dev
Choose a base branch
from
3 changes: 2 additions & 1 deletion .github/workflows/all-os-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
python-version: ["3.11.6"]
os: ["macos-latest", "ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v3
Expand All @@ -26,6 +26,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Run Integration Tests # run only those tests marked runinteg & with no osmosis deps
run: |
pytest -m runinteg --runinteg --deselect tests/osm/
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
python-version: ["3.11.6"]
os: ["macos-latest", "ubuntu-latest"]
steps:
- uses: actions/checkout@v3
Expand All @@ -26,6 +26,7 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .
- name: Install java
uses: actions/setup-java@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sphinx-render.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Render docs"
on: push

env:
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.11.6"
PUSH_BRANCH: "refs/heads/dev"

jobs:
Expand All @@ -21,6 +21,7 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .
- name: Sphinx build # use -W to turn warnings into errors
run: |
make -C docs/ html SPHINXOPTS="-W"
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Install Dependencies:

Package set-up and installation:

1. Setup a new conda env: `conda create -n r5py python=3.9.13`
2. Activate the environment: `conda activate r5py`
1. Setup a new conda env: `conda env create -f environment.yml`
2. Activate the environment: `conda activate transport-performance`
3. Launch terminal and change directory to wherever you keep your GitHub repos: `cd ~/Documents`
4. Clone this repo, eg with https: `git clone https://github.com/datasciencecampus/transport-network-performance.git`
5. Change directory to the repo: `cd transport-network-performance`
Expand Down
9 changes: 9 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: transport-performance
channels:
- conda-forge
dependencies:
- python=3.11.6
- cartopy
- proj # Required to build cartopy (can't be installed with pip)
# create your environment with the below line
# conda env create -f environment.yml
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=61.0.0", "wheel"]
requires = ["setuptools==65.6.3", "wheel"]

[project]
name = "transport_performance"
Expand All @@ -16,7 +16,7 @@ classifiers = [
"Operating System :: MacOS",
"Topic :: Scientific/Engineering :: GIS",
]
requires-python = ">=3.9, <3.10"
requires-python = "==3.11.6"
version = "0.0.1"

[tool.setuptools.packages.find]
Expand Down
42 changes: 16 additions & 26 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
pre-commit
r5py==0.1.0
gtfs_kit==5.2.7
rasterio
matplotlib>=3.7.0
scipy
rioxarray
geopandas
geocube
pyproj>=3.6.0
pytest
beautifulsoup4
cartopy
coverage
pyprojroot
pytest-lazy-fixture
numpy>=1.25.0 # test suite will fail if user installed lower than this
geocube
gtfs_kit==5.2.7
ipykernel==6.23.1
kaleido
mapclassify
munkres # new parent import flagged pipdeptools
nbformat
pandas<2.1.0
beautifulsoup4
requests
pytest-mock
toml
plotly
nbformat>=4.2.0
pre-commit
pretty_html_table
pyprojroot
pytest-lazy-fixture
pytest-mock
r5py==0.1.0
scikit-image
cartopy
folium
mapclassify
seaborn
pretty_html_table
kaleido
numpy>=1.25.0 # test suite will fail if user installed lower than this
sphinx
sphinx-rtd-theme
-e .
toml
6 changes: 0 additions & 6 deletions src/transport_performance/gtfs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
_is_expected_filetype,
)

warnings.filterwarnings(
action="ignore", category=DeprecationWarning, module=".*pkg_resources"
)
# see https://github.com/datasciencecampus/transport-network-performance/
# issues/19


def _construct_extended_schema_table(
some_soup: BeautifulSoup, cd_list: list, desc_list: list
Expand Down