"Fix egg on dependency links [SKIP CI]."

This commit is contained in:
Sergio Morillo 2021-01-20 00:38:00 +01:00
parent 6cdd850bc4
commit d8c85b6c39
4 changed files with 9 additions and 31 deletions

View File

@ -41,4 +41,10 @@ matrix:
DATABASE: sqlite
- IMAGE: python:3.7
TOXENV: py37
DATABASE: postgresql
- IMAGE: python:3.8
TOXENV: py38
DATABASE: sqlite
- IMAGE: python:3.8
TOXENV: py38
DATABASE: postgresql

View File

@ -54,9 +54,8 @@ dependency_links = {
'timesheet_work_notebook':
'git+https://gitlab.com/datalifeit/'
'trytond-timesheet_work_notebook@%(branch)s'
'#egg=datalife_timesheet_work_notebook-%(series)s' % {
'#egg=datalife_timesheet_work_notebook' % {
'branch': branch,
'series': series,
},
}

View File

@ -1,27 +0,0 @@
import netrc
import os
try:
from configparser import ConfigParser, DuplicateSectionError
except ImportError:
from ConfigParser import ConfigParser, DuplicateSectionError
def main():
netrc_ = netrc.netrc(os.path.expanduser('~/.netrc'))
config = ConfigParser()
try:
config.add_section('auth')
except DuplicateSectionError:
pass
hgrc = os.path.expanduser('~/.hgrc')
config.read(hgrc)
for host, (login, _, password) in netrc_.hosts.items():
config.set('auth', host + '.prefix', host)
config.set('auth', host + '.username', login)
config.set('auth', host + '.password', password)
with open(hgrc, 'w') as fp:
config.write(fp)
if __name__ == '__main__':
main()

View File

@ -1,10 +1,10 @@
[tox]
envlist = {py36,py37}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
envlist = {py36,py37,py38}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
[testenv]
commands = {envpython} setup.py test
deps =
{py36,py37}-postgresql: psycopg2 >= 2.5
{py36,py37,py38}-postgresql: psycopg2 >= 2.5
pypy3-postgresql: psycopg2cffi >= 2.5
{py36}-sqlite: sqlitebck
setenv =