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

This reverts commit f4c8475610.
This commit is contained in:
Sergio Morillo 2021-01-06 01:28:41 +01:00
parent f4c8475610
commit 6cdd850bc4
4 changed files with 32 additions and 9 deletions

View File

@ -41,10 +41,4 @@ 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

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

27
tests/netrc2hgrc.py Normal file
View File

@ -0,0 +1,27 @@
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,py38}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
envlist = {py36,py37}-{sqlite,postgresql},pypy3-{sqlite,postgresql}
[testenv]
commands = {envpython} setup.py test
deps =
{py36,py37,py38}-postgresql: psycopg2 >= 2.5
{py36,py37}-postgresql: psycopg2 >= 2.5
pypy3-postgresql: psycopg2cffi >= 2.5
{py36}-sqlite: sqlitebck
setenv =