Skip to content

Commit

Permalink
Merge pull request #26 from nimh-dsst/fix-package
Browse files Browse the repository at this point in the history
fix packaging and change name
  • Loading branch information
leej3 authored Jun 25, 2024
2 parents 181020b + 9d3a89b commit 03fede2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
OpenSciMetrics (OSM) applies NLP and LLM-based metrics and indicators related to transparency, data sharing, rigor, and open science on biomedical publications.

# How to setup and run the application
- After cloning the repo, navigate into the project's root directory by running `cd osm_cli`
- After cloning the repo, navigate into the project's root directory by running `cd osm`
- Run `python -m venv venv` to create a Virtual Environment
- Depending on your system, run the approriate command to Activate the Virtual Environment
Windows: `venv\Scripts\activate`<br>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion osm_cli/cli/main.py → osm/cli/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import click

from osm_cli.logging.logger import logger
from osm.logging.logger import logger


@click.group()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "osm-cli"
name = "osm"
description = "Open Science Metrics (OSM) client for tracking scientific transparency and reproducibility metrics"
readme = "README.md"
requires-python = ">=3.8"
Expand Down Expand Up @@ -30,21 +30,21 @@ dev = [

[project.urls]
homepage = "https://website"
source = "https://github.com/nimh-dsst/osm-cli"
issues = "https://github.com/nimh-dsst/osm-cli/issues"
source = "https://github.com/nimh-dsst/osm"
issues = "https://github.com/nimh-dsst/osm/issues"

[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "osm_cli/_version.py"
write_to = "osm/_version.py"

[tool.setuptools.packages.find]
where = ["osm_cli"]
where = ["."]

[project.scripts]
osm-cli = "osm_cli.cli.main:osm"
osm = "osm.cli.main:osm"

[tool.black]
line-length = 88
Expand Down
2 changes: 1 addition & 1 deletion tests/test_file_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from click.testing import CliRunner

from osm_cli.cli.main import pdf_xml
from osm.cli.main import pdf_xml


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ envlist = py39, py310, py311, py312, lint, format
deps =
.[dev]
commands =
python -m pytest --cov=osm_cli --cov-report=term-missing --cov-report=html --cov-report=xml
python -m pytest --cov=osm --cov-report=term-missing --cov-report=html --cov-report=xml

[testenv:lint]
description = Run ruff to lint the code
Expand Down

0 comments on commit 03fede2

Please sign in to comment.