Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,22 @@ jobs:
name: Python ${{ matrix.python-version }} Tests
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Python Tests

- name: Install project with dev dependencies
run: |
conda create --quiet --name test pytest
export PATH="/usr/share/miniconda/bin:$PATH"
source activate test
pip install bandit black isort flake8
pip install .
python -m pip install --upgrade pip
pip install .[dev]
npm install -g markdownlint-cli@0.33.0

- name: Run tests
run: |
make test
scraper -h

- name: Show scraper help
run: scraper -h
1 change: 0 additions & 1 deletion MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test:
pyflakes scraper

release: test
python3 setup.py sdist bdist_wheel
python3 -m build .

upload:
twine upload --skip-existing dist/*
59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "llnl-scraper"
version = "0.16.0"
description = "Package for extracting software repository metadata"
readme = "README.md"
requires-python = ">=3.8"
authors = [{ name = "Ian Lee", email = "lee1001@llnl.gov" }]
license = { text = "MIT" }
keywords = []
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"github3.py>=2.0.0",
"msrest>=0.6.4",
"python-dateutil>=2.7.3",
"python-gitlab>=1.6.0",
"pytz>=2017.3",
"requests>=2.16",
"setuptools>=24.2.0",
"stashy>=0.3",
"vsts>=0.1.25",
]

[project.urls]
Homepage = "https://github.com/llnl/scraper"

[project.scripts]
scraper = "scraper.gen_code_gov_json:main"

[project.optional-dependencies]
dev = [
"ipython",
"twine",
"build",
"bandit",
"black",
"flake8",
"isort",
"pyflakes",
"safety",
]
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

13 changes: 0 additions & 13 deletions requirements/dev.txt

This file was deleted.

9 changes: 0 additions & 9 deletions requirements/production.txt

This file was deleted.

48 changes: 0 additions & 48 deletions setup.py

This file was deleted.