Skip to content

Commit b1db15c

Browse files
committed
Add a symlink supybot pointing to src/ + move locales/ to src/
This looks like a more standard source tree, and allows for running tests without installing.
1 parent 4693537 commit b1db15c

12 files changed

+9
-16
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ supybot.egg-info/
2323
test-conf/
2424
test-data/
2525
test-logs/
26-
src/version.py
2726
INSTALL
2827
README.txt
2928
conf/

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PYTHON=`which python`
1+
PYTHON=`which python3`
22
DESTDIR=/
33
PROJECT=limnoria
44

@@ -10,6 +10,9 @@ all:
1010
@echo "make builddeb_py3 - Generate a deb package for Python 3"
1111
@echo "make clean - Get rid of scratch and byte files"
1212

13+
test:
14+
PATH=./scripts/:${PATH} PYTHONPATH=. $(PYTHON) ./scripts/supybot-test test --plugins-dir=plugins/
15+
1316
source:
1417
$(PYTHON) setup.py sdist $(COMPILE)
1518

@@ -35,4 +38,5 @@ clean:
3538
rm -rf build/ MANIFEST
3639
find . -name '*.pyc' -delete
3740
rm debian/control
38-
41+
42+
.PHONY: test

setup.py

+1-13
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,9 @@ def normalizeWhitespace(s):
147147
'supybot.plugins.Math.local',
148148
]
149149

150-
package_dir = {'supybot': 'src',
151-
'supybot.utils': 'src/utils',
152-
'supybot.locales': 'locales',
153-
'supybot.plugins': 'plugins',
154-
'supybot.drivers': 'src/drivers',
155-
'supybot.plugins.Dict.local': 'plugins/Dict/local',
156-
'supybot.plugins.Math.local': 'plugins/Math/local',
157-
}
158-
159-
package_data = {'supybot.locales': [s for s in os.listdir('locales/')]}
150+
package_data = {'supybot.locales': [s for s in os.listdir('supybot/locales/')]}
160151

161152
for plugin in plugins:
162-
package_dir['supybot.plugins.' + plugin] = 'plugins/' + plugin
163153
locales_path = 'plugins/' + plugin + '/locales/'
164154
locales_name = 'supybot.plugins.'+plugin
165155
if os.path.exists(locales_path):
@@ -210,8 +200,6 @@ def normalizeWhitespace(s):
210200
# Installation data
211201
packages=packages,
212202

213-
package_dir=package_dir,
214-
215203
package_data=package_data,
216204

217205
scripts=['scripts/supybot',
File renamed without changes.

locales/de.po src/locales/de.po

File renamed without changes.

locales/fi.po src/locales/fi.po

File renamed without changes.

locales/fr.po src/locales/fr.po

File renamed without changes.

locales/fr.py src/locales/fr.py

File renamed without changes.

locales/it.po src/locales/it.po

File renamed without changes.
File renamed without changes.

src/plugins

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../plugins

supybot

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src

0 commit comments

Comments
 (0)