Skip to content

Commit

Permalink
[BUGFIX] Nuked pipenv
Browse files Browse the repository at this point in the history
  • Loading branch information
egordm committed Dec 10, 2021
1 parent 6565028 commit 56a1301
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
python-version: 3.9
- name: Setup Pipenv
run: make setup
run: make setup-ci
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Publish docs
run: mkdocs gh-deploy --clean --force
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
with:
python-version: 3.9
- name: Setup Pipenv
run: make setup
run: make setup-ci
- name: Create test config
run: |
touch config.yml
pipenv run config
make config
sed -i "s/<notion token>/${{ secrets.TEST_NOTION_TOKEN }}/g" config.yml
sed -i "s/<notion unofficial token_v2>/${{ secrets.TEST_NOTION_TOKEN_V2 }}/g" config.yml
sed -i "s/<zotero token>/${{ secrets.TEST_ZOTERO_TOKEN }}/g" config.yml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Setup Pipenv
run: make setup
run: make setup-ci
- name: Create test config
run: |
touch config.yml
pipenv run config
make config
sed -i "s/<notion token>/${{ secrets.TEST_NOTION_TOKEN }}/g" config.yml
sed -i "s/<notion unofficial token_v2>/${{ secrets.TEST_NOTION_TOKEN_V2 }}/g" config.yml
sed -i "s/<zotero token>/${{ secrets.TEST_ZOTERO_TOKEN }}/g" config.yml
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,5 @@ cython_debug/
*.yml
!.github/workflows/*.yml
!mkdocs.yml
scratch
scratch
.secrets
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ setup-ci: setup
pip install -r requirements-dev.txt

clean:
rm -rf dist build requirements.txt requirements-dev.txt notionsci.egg-info
rm -rf dist build notionsci.egg-info

config:
python -m notionsci config -f config.yml

#---- Packaging ----

Expand Down
2 changes: 1 addition & 1 deletion notionsci/config/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
DEFAULT_PROFLE = "default"
OVERRIDE_CONFIG_NAME = "config.yml"

TEMPLATE_ZOTERO = 'https://efficacious-alarm-7cc.notion.site/Zotero-Library-908bf67ef61048b79a1a10dfa5826302'
TEMPLATE_ZOTERO = 'https://efficacious-alarm-7cc.notion.site/Zotero-Library-36f83fd853994420a53d818a5b67da3e'

DEV_TESTS_PAGE = "https://www.notion.so/NotionSci-Tests-22ecab6188d147ef83fa455e2694395b"
2 changes: 1 addition & 1 deletion notionsci/connections/notion/structures/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def to_markdown(self, context: MarkdownContext) -> str:
@dataclass_dict_convert(dict_letter_case=snakecase)
@dataclass
class ChildPageBlock:
text: str
title: str


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ idna==3.2 ; python_version >= '3'
inquirer==2.7.0
mistletoe==0.7.2
mypy-extensions==0.4.3
notion
git+https://github.com/EgorDm/notion-py.git
notion-client==0.6.0
numpy==1.21.2 ; python_version < '3.11' and python_version >= '3.7'
pandas==1.3.3
Expand Down

0 comments on commit 56a1301

Please sign in to comment.